package com.lottery.game.core.modules.entity.game;

import com.lottery.game.common.BaseObject;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@NoArgsConstructor
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Builder
@Getter
@Setter
@Table(name = "game_game")
public class GameGame extends BaseObject {
    /**
     * id主键
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    private String id;

    /**
     * 房间号
     */
    @Column(name = "roomid")
    private String roomid;

    @Column(name = "game_type_playing_ticket")
    @ApiModelProperty(value = "游戏玩法编号")
    private Integer gameTypePlayingTicket;

    /**
     * 期号
     */
    @Column(name = "issue")
    private String issue;

    @Column(name = "status")
    private String status;

    /**1
     * 开奖号码
     */
    @Column(name = "note")
    private String note;

    @Column(name = "createTime")
    private Date createTime;

    @Column(name = "closeTime")
    private Date closeTime;

    @Column(name = "resultStr")
    private String resultStr;

    @Column(name = "issueApi")
    private String issueApi;

    @Column(name = "openTime")
    private Date openTime;

    /**
     * 1:撤单，2：手动开奖
     */
    @Column(name = "admin_change_type")
    private String adminChangeType;
}
